home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OperationMaus.swf / scripts / DefineButton2_638 / BUTTONCONDACTION on(keyPress Space).as
Encoding:
Text File  |  2005-08-08  |  1.0 KB  |  46 lines

  1. on(keyPress "<Space>"){
  2.    if(_root.board.granates >= 1)
  3.    {
  4.       if(_root["12"] == 1)
  5.       {
  6.          _root.granateoben.play();
  7.          _root.board.granates -= 1;
  8.       }
  9.       if(_root["12"] == 4)
  10.       {
  11.          _root.granatelinks.play();
  12.          _root.board.granates -= 1;
  13.       }
  14.       if(_root["12"] == 3)
  15.       {
  16.          _root.granaterechts.play();
  17.          _root.board.granates -= 1;
  18.       }
  19.       if(_root["12"] == 2)
  20.       {
  21.          _root.granateunten.play();
  22.          _root.board.granates -= 1;
  23.       }
  24.       if(_root["12"] == 8)
  25.       {
  26.          _root.granateuntenlinks.play();
  27.          _root.board.granates -= 1;
  28.       }
  29.       if(_root["12"] == 7)
  30.       {
  31.          _root.granateuntenrechts.play();
  32.          _root.board.granates -= 1;
  33.       }
  34.       if(_root["12"] == 6)
  35.       {
  36.          _root.granateobenlinks.play();
  37.          _root.board.granates -= 1;
  38.       }
  39.       if(_root["12"] == 5)
  40.       {
  41.          _root.granateobenrechts.play();
  42.          _root.board.granates -= 1;
  43.       }
  44.    }
  45. }
  46.